<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>navbar</title>
</head>
<body>

<!--
用法:
<div th:insert="~{ /common/common_tab:: tab('名称')}"></div>
-->
<div th:fragment="tab(typeName)">
    <ul class="nav nav-tabs" role="tablist">
        <li class="active" onclick="showList()" id="ListNav"><a href="#" th:text="${typeName} + '管理'"></a></li>
        <li onclick="showAdd()" id="AddNav"><a href="#"  th:text="${typeName} + '添加'"></a></li>
    </ul>
</div>

</body>
</html>